package com.example.ticket.controller;

import com.example.ticket.bean.ResponseBean;
import com.example.ticket.entity.Ban;
import com.example.ticket.mapper.BanMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.List;

@Controller
public class BanController {
/*
   @Autowired
    BanMapper banMapper;

*/

/*    @RequestMapping("/ban")
    @ResponseBody
    public ResponseBean Ban(Ban ban){
        int res=banMapper.insert(ban);
        if(res==1){
        return ResponseBean.success();
        }else{
            return ResponseBean.fail();
        }
    }*/
}
